package br.com.relatorio.services;

import java.io.File;
import java.util.HashMap;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.relatorio.beans.AcompanhamentoProcesso;
import br.com.relatorio.pdf.util.GeraPdf;
import br.com.relatorio.repositorio.AcompProcessosRelatoriosRepositorio;

@Service
public class AcompProcessosRelatoriosServices {
	
	@Autowired
	private AcompProcessosRelatoriosRepositorio acompProcessosRelatoriosRepositorio;
	
	
	
	public void geraRelatorio(AcompanhamentoProcesso ap){
		
		String jasperPath = "/br/com/relatorio/template/relatorio.jasper";
		HashMap<String, Object> parametros = new HashMap<String, Object>();
		
		GeraPdf geraPdf = new GeraPdf(jasperPath, new File("relatorio.pdf"), parametros);
		geraPdf.exportPDF();
		
	}
	
	

}
